package com.ruicar.afs.cloud.filecenter.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.filecenter.enums.FileAllowEnum;
import lombok.Data;

@Data
@TableName("afs_file_store_config")
public class AfsFileStoreConfig{
    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id ;
    /** 配置类型 */
    private String configType ;
    /** 最大大小 */
    private Integer maxSize ;
    /** 特征码 */
    private String signature ;
    /** 是否允许上传 */
    private FileAllowEnum allowed ;

}
